package learn_concurrent._9;

public class T5 {

    private static T5 instance;

    public static T5 getInstance() {
        if(instance == null) {
            synchronized (T5.class) {
                if(instance == null) {
                    instance = new T5();
                }
            }
        }
        return instance;
    }

    public static void main(String[] args) {
        T5.getInstance();
    }
}
